package com.whisper.common.detect.monitor;

import com.whisper.common.detect.domain.Server;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 * 
 * @author whisper
 */
@RestController
@RequestMapping("/monitor/server")
public class ServerController
{
    @GetMapping()
    public Server getInfo() throws Exception
    {
        Server server = new Server();
        server.copyTo();
        return server;
    }
}
